This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
retrieve Username (using vbscript in Notes) ~Fred Chufookonyoden 3.Dec.03 01:01 PM a Web browser Domino Designer 6.0.1 CF2Windows XP
Hello,
I don't know how to use vbscript in Notes.
But you can retrieve the username using the Windows API. The following example works on a Windows 2000 Workstation and I hope that MS hasn't changed the Syntax of the API.
You have to declare the function in the declaration section of your agent.
For example:
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (Byval lpBuffer As String, nSize As Long) As Long
Then you can use the function in your agent. Like this:
Sub Initialize
Dim RetVal As Long
Dim Buffer As String * 255
Dim UserName As String